package com.wutuo.contact.api;

import cn.apestar.user.provider.info.domain.User;
import cn.apestar.user.provider.institution.response.InstitutionResponse;
import com.wutuo.contact.provider.enums.ContactType;
import com.wutuo.contact.provider.vo.ContactListItem;
import com.wutuo.contact.provider.vo.ParentSiteContactListItem;
import com.wutuo.roster.api.response.ParentsResponse;

import java.util.List;

/**
 * Created by Singer_YDW on 2016/11/9.
 */
public interface ContactAPIService {

    public List<ContactListItem> getContactList(ContactType contactType, Long institutionId,
        Long userId);

    public List<ContactListItem> getParentList(Long institutionId, Long userId, String app);

    public List<ContactListItem> getWorkmateList(Long institutionId, Long userId);

    /**
     * 家长端联系人列表
     *
     * @param userId
     * @return
     */
    List<ParentSiteContactListItem> list(Long userId);

    List<ParentSiteContactListItem> buildListResponse(List<ParentsResponse> parentsInfo,
        List<InstitutionResponse> institutions, List<User> teachersInfo);

}
